/**
 * 
 */
package com.cchr.acms.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cchr.acms.service.ImportDataService;

@Controller
@RequestMapping("/task")
public class TaskController 
{    
	@Autowired
	ImportDataService importData1;
	
    @RequestMapping("/importcase")
    @ResponseBody
    public String importcase(HttpServletRequest request)
    {
    	
    	try {
			importData1.saveData();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	
        return "success";
    }
    
}
